﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Budget.HelperClasses;
using Budget.DataAccess;

namespace Budget.WCF
{
	// NOTE: If you change the interface name "ISpendingService" here, you must also update the reference to "ISpendingService" in App.config.
	[ServiceContract]
	public interface ISpendingService
	{
		[OperationContract]
		bool SpendingsExistForMonthYear( int month, int year );
		[OperationContract]
		bool SpendingsExistForMonth( int mthId );
		[OperationContract]
		IList<MonthSummary> GetMonthCategorySummary( DateTime analysisDate );
		[OperationContract]
		IList<Spending> GetSpendingsByMonthAndYear( int month, int year );
		[OperationContract]
		IList<Spending> GetSpendingsByMonth( int mthId );
		[OperationContract]
		IList<Spending> GetSpendingsByMthCategoryId( int mthCategoryId );
		[OperationContract]
		void Save( Spending spending );
	}
}
